<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 1200px;
            height: 500px;
            border: 1px solid black;
            background-image: url(../07-定位+装饰/img/java.png);
            background-repeat: no-repeat;
            background-size: cover;
        }
    </style>
</head>
<body>
<div>
    
</div>
</body>
</html>